<?php
Yii::import('application.modules.blog.models.BlogPost');
$bp = BlogPost::model()->count();
$event->data['blog'] = 'Total blog posts: '.$bp;
